<%@page import="statics.SoptVars"%><%@page import="comm.util.SoptHashMap"%>
<%@page import="tags.WagleTagManager"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%if(session.isNew() || session.getAttribute("SESSION_MEMBER_SEQ")==null){ %>
		<script type="text/javascript">
			window.parent.alarm("로그인 후 이용하실 수 있습니다.");
			window.parent.getContentsList();
		</script>
<%}else{
	WagleTagManager wagle = new WagleTagManager();
	SoptHashMap result = wagle.regContentForTag(request);
		if(result.get("RESULT")!=null && result.get("RESULT").toString().equals(SoptVars.SUCCESS)){%>
		<script type="text/javascript">
			window.parent.regContentComplete('<%=result.toJSONObject()%>');
		</script>
		<%}else{%>
		<script type="text/javascript">
			window.parent.regContentComplete('<%=result.toJSONObject()%>');
		</script>
		<%}
} %>
